(window._sp_wp_jsonp=window._sp_wp_jsonp||[]).push([[1,0],{179:function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return P}));r(22),r(27),r(54),r(28),r(29),r(71),r(102),r(101),r(51),r(49),r(50),r(30),r(31),r(32),r(187),r(188),r(53),r(55),r(68),r(35),r(72),r(33),r(69),r(52),r(34);var n=r(0),o=r(14),i=r(59),u=r(21),c=r(193),a=null,s=null,l=function(t,e,r){try{t(e,r)}catch(t){Object(n.handleError)(new n.CmpCallbackError(t),"ccpa")}},f={getuspdata:function(t,e){var r=Object(n.getUserConsentData)("ccpa")||{},o=r.applies,i=r.dateCreated,u=r.gpcEnabled,c=r.signedLspa,a=r.status,s=Object(n.getStateStorageFromMemory)("newUser",void 0,"ccpa"),l=Object(n.getUspString)(1,a,o,c);try{e({version:t,uspString:l,newUser:s,dateCreated:i,gpcEnabled:u},!0)}catch(t){Object(n.handleError)(new n.CmpCallbackError(t),"ccpa")}},getcustomvendorrejects:function(t,e,r,o){var i=r.ccpaOrigin,u=Object(n.getUserConsentData)("ccpa"),c=u.applies,f=u.dateCreated,p=u.status,y=u.rejectedCategories,b=u.rejectedVendors;if(a&&f===s)l(e,a,!0);else if(p&&"rejectedAll"===p||y&&y.length>0||b&&b.length>0){var d="".concat(i,"/ccpa/consent/").concat(o,"/custom-vendors?ccpaUUID=").concat(Object(n.getUserConsentData)("ccpa","uuid"));Object(n.fetch)(d,{method:"GET"}).then((function(t){return JSON.parse(t)})).then((function(t){var r=t.rejectedCategories,n=t.rejectedVendors,o=t.ccpaApplies;s=f,l(e,a={rejectedCategories:r,rejectedVendors:n,ccpaApplies:o},!0)})).catch((function(t){return e(null,!1)}))}else l(e,{rejectedCategories:[],rejectedVendors:[],ccpaApplies:c},!0)},postrejectall:function(t,e,r,o){var i=r.wrapperAPIOrigin,u=r.mmsDomain,c=r.pubData,a={applies:Object(n.getUserConsentData)("ccpa","applies"),authId:Object(n.getUserConsentData)("ccpa","authId"),mmsDomain:u,propertyId:o,pubData:c,includeData:{actions:{type:"RecordString"},customVendorsResponse:{type:"RecordString"}},uuid:Object(n.getUserConsentData)("ccpa","uuid"),sampleRate:Object(n.sampleRate)("ccpa"),sendPVData:Object(n.sampleUser)("ccpa")};return Object(n.fetch)("".concat(i,"/v2/choice/").concat("ccpa","/13"),{body:JSON.stringify(a),headers:{"Content-Type":"application/json"},method:"POST",params:{env:window._sp_.config.env||"prod"}}).then(JSON.parse).then((function(t){return Object(n.handleConsentData)(t,"ccpa",u)})).then((function(){l(e,null,!0)})).catch((function(t){console.error(t),l(e,null,!1)}))}},p=function(t,e){var r=window.__uspapi.a;!function(t,e){window.__uspapi=function(r,n,o){"string"==typeof r&&(r=r.toLowerCase());var i=f[r];i&&i(n,o,t,e)}}(t,e),r&&r.length>0&&r.forEach((function(t){window.__uspapi.apply(null,t)}))};function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return d(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return d(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r2&&void 0!==arguments[2]?arguments[2]:function(){},b=arguments.length>3?arguments[3]:void 0,d=arguments.length>4?arguments[4]:void 0;o=b?"CCPAPrivacyManagerOTT":d?"NativeOtt":"PrivacyManagerCCPA";var v=r.makeMessageUrl(o,t,Object(n.getUserConsentData)(r.category,"uuid"),r.propertyId,c,a,l),h={};return e&&(h={type:"inline",type_settings:{targetType:"id",targetName:e}}),new n.Renderer({accountId:i,url:v,mmsDomain:a,siteId:r.propertyId,href:s,msgOrigin:isNaN(t)?u.a:l,settings:h,messageId:t,cmpOrigin:c,type:"pm",pmOrigin:f,wrapperAPIOrigin:r.config.wrapperAPIOrigin,plugAndPlay:!0,callbackPath:p,updateCMP:r.updateCmpPost.bind(r),pubData:y,category:r.category}).init()},window._sp_.ccpa.loadPrivacyManagerModal=function(t,e,r,n){return window._sp_.ccpa.loadPrivacyManager(t,e,null,r,n)},window._sp_.ccpa.loadPrivacyManagerOtt=function(t,e,r){return window._sp_.ccpa.loadPrivacyManager(t,e,r,!0)},window._sp_.ccpa.loadNativeOtt=function(t){return window._sp_.ccpa.loadPrivacyManagerModal(t,null,!1,!0)},Promise.all((d||[]).map(n.executeAction)).then((function(t){return Object(n.setCookiesAction)(S,a,r.category)}))}},{key:"checkForMessage",value:function(){this.hasMessage()||Object(n.executeEventCallback)("onMessageReceiveData",[{messageId:0}],this.category);var t=this.campaignResponse,e=t.applies,r=t.gpcEnabled,o=t.signedLspa,i=t.status,u=t.uuid,c=Object(n.getUspString)(1,i,e,o);window.__uspapi&&"function"==typeof window.__uspapi.hasSeenCCPAMessage&&window.__uspapi.hasSeenCCPAMessage(),Object(n.executeEventCallback)("onConsentReady",[u,c,{applies:e,gpcEnabled:r}],this.category)}},{key:"getPvData",value:function(){var t=(this.campaignResponse&&this.campaignResponse.messageMetaData||{}).messageId,e=Object(n.getUserConsentData)(this.category),r=e.applies,o=e.uuid,i=e.rejectedVendors;return{applies:r,uuid:o,consentStatus:{rejectedCategories:e.rejectedCategories,rejectedVendors:i,rejectedAll:e.rejectedAll},messageId:t}}},{key:"makeMessageUrl",value:function(t,e,r,o,i,c,a){var s="index.html",l=[s],f=a,p={ccpa_origin:i,ccpaUUID:r,message_id:e,site_id:o,mms_origin:"".concat(c,"/mms/v2")};return"CCPAPrivacyManagerOTT"===t?l=["ccpa_ott",s]:"NativeOtt"===t?(l=["native-ott",s],p=h(h({},p),{},{consent_origin:i,is_ccpa:!0})):"PrivacyManagerCCPA"===t?isNaN(e)?(f=u.a,l=[],p={privacy_manager_id:e,mms_origin:c,site_id:o,ccpa_origin:i,ccpaUUID:r}):l=["ccpa_pm",s]:p={message_id:e,consentUUID:r,preload_message:!0},Object(n.appendQueryParams)([f].concat(b(l)).join("/"),h(h({},p),{},{version:"v1"}))}},{key:"showMessage",value:function(){if(this.sendPvData(),!this.hasMessage())return Promise.resolve();var t=this.config,e=t.accountId,r=t.ccpaOrigin,i=t.mmsDomain,u=t.msgOrigin,c=t.pmOrigin,a=t.propertyHref,s=t.pubData,l=this.campaignResponse,f=l.message,p=l.messageMetaData,y=p.bucket,b=p.categoryId,d=p.messageId,v=p.prtnUUID,h=p.subCategoryId;return Object(n.executeEventCallback)("onMessageReceiveData",[{prtnUUID:v,msg_id:d,messageId:d,msgDescription:f.message_json.name||"",bucket:y,categoryId:b,subCategoryId:h}],this.category),new n.Renderer({accountId:e,url:this.makeMessageUrl(f.message_json.type,d,Object(n.getUserConsentData)(this.category,"uuid"),this.propertyId,r,i,u),mmsDomain:i,siteId:this.propertyId,href:a,msgOrigin:u,message:f,settings:f.message_json.settings,messageId:d,cmpOrigin:r,type:Object(o.e)(f.message_json.type)?"pm":"message",pmOrigin:c,wrapperAPIOrigin:this.config.wrapperAPIOrigin,callbackPath:null,plugAndPlay:!1,updateCMP:this.updateCmpPost.bind(this),pubData:s,category:this.category}).init()}},{key:"updateCmpPost",value:function(){}}])&&S(e.prototype,r),c&&S(e,c),Object.defineProperty(e,"prototype",{writable:!1}),s}(c.a)},186:function(t,e,r){"use strict";r.r(e),r.d(e,"default",(function(){return v}));r(101),r(27),r(49),r(50),r(30),r(31),r(32),r(187),r(188),r(190),r(68),r(33),r(22),r(28),r(29);var n=r(199);var o=r(0);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){for(var r=0;r0&&0!==r.messageId}},{key:"hasInlineMessage",value:function(){var t=this.campaignResponse.message;return!!this.hasMessage()&&t&&t.message_json&&t.message_json.settings&&t.message_json.settings.type&&"inline"===t.message_json.settings.type}},{key:"getPvData",value:function(){return{}}},{key:"sendPvData",value:function(){var t=this.config,e=t.accountId,r=t.env,o=t.wrapperAPIOrigin,i=t.mmsDomain,a=t.pubData,s=this.getPvData();!function(t,e,r,o,i,a,s,l){if(!Object(n.sampleUser)(s))return Promise.resolve();var f=c({},s,u(u({},l),{},{accountId:e,siteId:r,propertyId:r,pubData:a,withSiteActions:"true",sampleRate:Object(n.sampleRate)(s)}));Object(n.fetch)("".concat(o,"/v2/pv-data"),{method:"POST",body:JSON.stringify(f),headers:{"Content-Type":"application/json"},params:{env:t}}).then(JSON.parse).then((function(t){return Promise.all(Object.keys(t).map((function(e){return Object(n.handleConsentData)(t[e],e,i)})))})).catch((function(t){return Promise.resolve()}))}(r,e,this.propertyId,o,i,a,this.category,s)}}])&&s(e.prototype,r),o&&s(e,o),Object.defineProperty(e,"prototype",{writable:!1}),t}()},194:function(t,e,r){r(58)("asyncIterator")},195:function(t,e,r){"use strict";var n=r(1),o=r(57),i=[].reverse,u=[1,2];n({target:"Array",proto:!0,forced:String(u)===String(u.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),i.call(this)}})},199:function(t,e,r){"use strict";r.d(e,"a",(function(){return oa}));r(187),r(188),r(27),r(49),r(50),r(30),r(31),r(32),r(33),r(22),r(28),r(29);function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){for(var r=0;r. parameter required");var t=this.parameter.split(".");if(2!=t.length)throw new Error("Field name must be in the format
.");var e=t[0],r=t[1],n=this.cmpApiContext.gppModel.getFieldValue(e,r);this.invokeCallback(n)}}])&&x(e.prototype,r),n&&x(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(g);function Q(t){return(Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function X(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $(t,e){for(var r=0;r parameter required");var t=null;this.cmpApiContext.gppModel.hasSection(this.parameter)&&(t=this.cmpApiContext.gppModel.getSection(this.parameter)),this.invokeCallback(t)}}])&&$(e.prototype,r),n&&$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(g);function rt(t){return(rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ot(t,e){for(var r=0;r[.version] parameter required");var t=this.cmpApiContext.gppModel.hasSection(this.parameter);this.invokeCallback(t)}}])&&ot(e.prototype,r),n&&ot(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(g);function pt(t){return(pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bt(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r=1)for(r.push(1);t>=2*r[0];)r.unshift(2*r[0]);for(var n="",o=0;o=i?(n+="1",t-=i):n+="0"}for(;n.length0;)t+="0";for(;t.length%6>0;)t+="0";return t}}])&&Pe(e.prototype,r),n&&Pe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(_e);r(191),r(104),r(190),r(68);function De(t){return(De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Me(t,e){for(var r=0;r=1&&(e.push(1),t>=2)){e.push(2);for(var r=2;t>=e[r-1]+e[r-2];)e.push(e[r-1]+e[r-2]),r++}for(var n="1",o=e.length-1;o>=0;o--){var i=e[o];t>=i?(n="1"+n,t-=i):n="0"+n}return n}},{key:"decode",value:function(t){if(!/^[0-1]*$/.test(t)||t.length<2||t.indexOf("11")!==t.length-2)throw new oe("Undecodable FibonacciInteger '"+t+"'");for(var e=0,r=[],n=0;nt.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&e.decode(t),e}return e=i,(r=[{key:"encode",value:function(){var t=this.encodeToBitString();return this.base64UrlEncoder.encode(t)}},{key:"decode",value:function(t){var e=this.base64UrlEncoder.decode(t);this.decodeFromBitString(e)}},{key:"getId",value:function(){return i.ID}},{key:"getName",value:function(){return i.NAME}}])&&_r(e.prototype,r),n&&_r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(Or);function Rr(t){return(Rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Dr(t,e){for(var r=0;rt.length)&&(e=t.length);for(var r=0,n=new Array(e);re&&(r=r.slice(0,e)),cn(yn(i.prototype),"setValue",this).call(this,nn(r))}}])&&un(e.prototype,r),n&&un(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(Xe);function vn(t){return(vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function hn(t){return function(t){if(Array.isArray(t))return Sn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Sn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sn(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Sn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);rthis.numElements&&(e=e.slice(0,this.numElements)),mn(Pn(i.prototype),"setValue",this).call(this,e)}}])&&gn(e.prototype,r),n&&gn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(Xe);r(145);function An(t){return(An="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function jn(t,e){for(var r=0;r=65))throw new Se("Unencodable FixedString '"+t+"'");r+=ae.encode(t.charCodeAt(n)-65,6)}}return r}},{key:"decode",value:function(t){if(!/^[0-1]*$/.test(t)||t.length%6!=0)throw new oe("Undecodable FixedString '"+t+"'");for(var e="",r=0;r0)for(var n=0,o=0;ot.length)&&(e=t.length);for(var r=0,n=new Array(e);rt.length)&&(e=t.length);for(var r=0,n=new Array(e);r0?this.value[this.value.length-1]:0,e=Jn.encode(this.value),r=t;if(e.length<=r)return ae.encode(t,16)+"1"+e;for(var n=[],o=0,i=0;i0;)t+="0";return t}}])&&To(e.prototype,r),n&&To(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(_e);function Ro(t){return(Ro="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Do(t,e){for(var r=0;r0&&e.decode(t),e}return e=i,(r=[{key:"encode",value:function(){var t=this.encodeSegmentsToBitStrings(),e=[];return e.push(this.base64UrlEncoder.encode(t[0])),this.getFieldValue(Oo.IS_SERVICE_SPECIFIC.toString())?t[1]&&t[1].length>0&&e.push(this.base64UrlEncoder.encode(t[1])):(t[2]&&t[2].length>0&&e.push(this.base64UrlEncoder.encode(t[2])),t[3]&&t[3].length>0&&e.push(this.base64UrlEncoder.encode(t[3]))),e.join(".")}},{key:"decode",value:function(t){for(var e=t.split("."),r=[],n=0;n0&&e.decode(t),e}return e=i,(r=[{key:"encode",value:function(){var t=this.encodeSegmentsToBitStrings(),e=[];return e.push(this.base64UrlEncoder.encode(t[0])),t[1]&&t[1].length>0&&e.push(this.base64UrlEncoder.encode(t[1])),e.join(".")}},{key:"decode",value:function(t){for(var e=t.split("."),r=[],n=0;n=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){c=!0,i=t},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw i}}}}function vi(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&this.decode(e)}var e,r,n;return e=t,(r=[{key:"hasField",value:function(t){return this.fields.has(t)}},{key:"getFieldValue",value:function(t){return this.fields.has(t)?this.fields.get(t):null}},{key:"setFieldValue",value:function(t,e){if(!this.fields.has(t))throw new yi(t+" not found");this.fields.set(t,e)}},{key:"toObj",value:function(){var t,e={},r=di(this.fields.keys());try{for(r.s();!(t=r.n()).done;){var n=t.value,o=this.fields.get(n);e[n.toString()]=o}}catch(t){r.e(t)}finally{r.f()}return e}},{key:"encode",value:function(){var t="";return t+=this.getFieldValue(pi.VERSION.toString()),t+=this.getFieldValue(pi.NOTICE.toString()),t+=this.getFieldValue(pi.OPT_OUT_SALE.toString()),t+=this.getFieldValue(pi.LSPA_COVERED.toString())}},{key:"decode",value:function(t){this.setFieldValue(pi.VERSION.toString(),parseInt(t.charAt(0))),this.setFieldValue(pi.NOTICE.toString(),t.charAt(1)),this.setFieldValue(pi.OPT_OUT_SALE.toString(),t.charAt(2)),this.setFieldValue(pi.LSPA_COVERED.toString(),t.charAt(3))}},{key:"getId",value:function(){return t.ID}},{key:"getName",value:function(){return t.NAME}}])&&hi(e.prototype,r),n&&hi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Oi(t){return(Oi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ei(t,e){for(var r=0;re*r)throw new oe("Undecodable FixedIntegerList '"+t+"'");if(t.length%e!=0)throw new oe("Undecodable FixedIntegerList '"+t+"'");for(;t.lengthe*r&&(t=t.substring(0,e*r));for(var n=[],o=0;ot.length)&&(e=t.length);for(var r=0,n=new Array(e);rthis.numElements&&(e=e.slice(0,this.numElements)),Ai(Vi(i.prototype),"setValue",this).call(this,e)}}])&&Ii(e.prototype,r),n&&Ii(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(Xe);function xi(t){return(xi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Fi(t,e){for(var r=0;r0&&e.decode(t),e}return e=i,(r=[{key:"encode",value:function(){var t=this.encodeSegmentsToBitStrings(),e=[];return e.push(this.base64UrlEncoder.encode(t[0])),t[1]&&t[1].length>0&&!0===this.fields.get(Li.GPC_SEGMENT_INCLUDED).getValue()&&e.push(this.base64UrlEncoder.encode(t[1])),e.join(".")}},{key:"decode",value:function(t){for(var e=t.split("."),r=[],n=!1,o=0;o0&&e.decode(t),e}return e=i,(r=[{key:"encode",value:function(){var t=this.encodeSegmentsToBitStrings(),e=[];return e.push(this.base64UrlEncoder.encode(t[0])),t[1]&&t[1].length>0&&!0===this.fields.get($i.GPC_SEGMENT_INCLUDED).getValue()&&e.push(this.base64UrlEncoder.encode(t[1])),e.join(".")}},{key:"decode",value:function(t){for(var e=t.split("."),r=[],n=!1,o=0;o0&&e.decode(t),e}return e=i,(r=[{key:"encode",value:function(){return this.base64UrlEncoder.encode(this.encodeToBitString())}},{key:"decode",value:function(t){this.decodeFromBitString(this.base64UrlEncoder.decode(t))}},{key:"getId",value:function(){return i.ID}},{key:"getName",value:function(){return i.NAME}}])&&su(e.prototype,r),n&&su(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(Or);function gu(t){return(gu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function mu(t,e){for(var r=0;r0&&e.decode(t),e}return e=i,(r=[{key:"encode",value:function(){var t=this.encodeSegmentsToBitStrings(),e=[];return e.push(this.base64UrlEncoder.encode(t[0])),t[1]&&t[1].length>0&&!0===this.fields.get(hu.GPC_SEGMENT_INCLUDED).getValue()&&e.push(this.base64UrlEncoder.encode(t[1])),e.join(".")}},{key:"decode",value:function(t){for(var e=t.split("."),r=[],n=!1,o=0;o0&&e.decode(t),e}return e=i,(r=[{key:"encode",value:function(){return this.base64UrlEncoder.encode(this.encodeToBitString())}},{key:"decode",value:function(t){this.decodeFromBitString(this.base64UrlEncoder.decode(t))}},{key:"getId",value:function(){return i.ID}},{key:"getName",value:function(){return i.NAME}}])&&Cu(e.prototype,r),n&&Cu(e,n),Object.defineProperty(e,"prototype",{writable:!1}),i}(Or);function Fu(t){return(Fu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Bu(t,e){for(var r=0;r0&&e.decode(t),e}return e=i,(r=[{key:"encode",value:function(){var t=this.encodeSegmentsToBitStrings(),e=[];return e.push(this.base64UrlEncoder.encode(t[0])),t[1]&&t[1].length>0&&!0===this.fields.get(Gu.GPC_SEGMENT_INCLUDED).getValue()&&e.push(this.base64UrlEncoder.encode(t[1])),e.join(".")}},{key:"decode",value:function(t){for(var e=t.split("."),r=[],n=!1,o=0;o0)try{this.decode(this.encodedString)}catch(t){throw new lc(t.message)}var n=null;if(this.sections.has(t)?n=this.sections.get(t):t===ri.NAME?(n=new ri,this.sections.set(ri.NAME,n)):t===Yo.NAME?(n=new Yo,this.sections.set(Yo.NAME,n)):t===mi.NAME?(n=new mi,this.sections.set(mi.NAME,n)):t===Ji.NAME?(n=new Ji,this.sections.set(Ji.NAME,n)):t===cu.NAME?(n=new cu,this.sections.set(cu.NAME,n)):t===Su.NAME?(n=new Su,this.sections.set(Su.NAME,n)):t===Au.NAME?(n=new Au,this.sections.set(Au.NAME,n)):t===xu.NAME?(n=new xu,this.sections.set(xu.NAME,n)):t===Ju.NAME&&(n=new Ju,this.sections.set(Ju.NAME,n)),!n)throw new yi(t+"."+e+" not found");n.setFieldValue(e,r),this.dirty=!0}},{key:"setFieldValueBySectionId",value:function(t,e,r){this.setFieldValue(rc.SECTION_ID_NAME_MAP.get(t),e,r)}},{key:"getFieldValue",value:function(t,e){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(t){throw new lc(t.message)}return this.sections.has(t)?this.sections.get(t).getFieldValue(e):null}},{key:"getFieldValueBySectionId",value:function(t,e){return this.getFieldValue(rc.SECTION_ID_NAME_MAP.get(t),e)}},{key:"hasField",value:function(t,e){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(t){throw new lc(t.message)}return!!this.sections.has(t)&&this.sections.get(t).hasField(e)}},{key:"hasFieldBySectionId",value:function(t,e){return this.hasField(rc.SECTION_ID_NAME_MAP.get(t),e)}},{key:"hasSection",value:function(t){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(t){throw new lc(t.message)}return this.sections.has(t)}},{key:"hasSectionId",value:function(t){return this.hasSection(rc.SECTION_ID_NAME_MAP.get(t))}},{key:"deleteSection",value:function(t){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(t){throw new lc(t.message)}this.sections.delete(t),this.dirty=!0}},{key:"deleteSectionById",value:function(t){this.deleteSection(rc.SECTION_ID_NAME_MAP.get(t))}},{key:"clear",value:function(){this.sections.clear(),this.encodedString="DBAA",this.decoded=!1,this.dirty=!1}},{key:"getHeader",value:function(){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(t){throw new lc(t.message)}var t=new Cr;return t.setFieldValue("SectionIds",this.getSectionIds()),t.toObj()}},{key:"getSection",value:function(t){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(t){throw new lc(t.message)}return this.sections.has(t)?this.sections.get(t).toObj():null}},{key:"getSectionIds",value:function(){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(t){throw new lc(t.message)}for(var t=[],e=0;e0)try{this.decode(this.encodedString)}catch(t){throw new lc(t.message)}for(var t=[],e=[],r=0;r0)try{this.decode(this.encodedString)}catch(t){throw new lc(t.message)}return this.sections.has(t)?this.sections.get(t).encode():null}},{key:"encodeSectionById",value:function(t){return this.encodeSection(rc.SECTION_ID_NAME_MAP.get(t))}},{key:"decodeSection",value:function(t,e){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(t){throw new lc(t.message)}var r=null;this.sections.has(t)?r=this.sections.get(t):t===ri.NAME?(r=new ri,this.sections.set(ri.NAME,r)):t===Yo.NAME?(r=new Yo,this.sections.set(Yo.NAME,r)):t===mi.NAME?(r=new mi,this.sections.set(mi.NAME,r)):t===Ji.NAME?(r=new Ji,this.sections.set(Ji.NAME,r)):t===cu.NAME?(r=new cu,this.sections.set(cu.NAME,r)):t===Su.NAME?(r=new Su,this.sections.set(Su.NAME,r)):t===Au.NAME?(r=new Au,this.sections.set(Au.NAME,r)):t===xu.NAME?(r=new xu,this.sections.set(xu.NAME,r)):t===Ju.NAME&&(r=new Ju,this.sections.set(Ju.NAME,r)),r&&(r.decode(e),this.dirty=!0)}},{key:"decodeSectionById",value:function(t,e){this.decodeSection(rc.SECTION_ID_NAME_MAP.get(t),e)}},{key:"toObject",value:function(){if(!this.decoded&&null!=this.encodedString&&this.encodedString.length>0)try{this.decode(this.encodedString)}catch(t){throw new lc(t.message)}for(var t={},e=0;e=200&&u.status<300){var t=u.response;if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}o(t)}else i(new Error("HTTP Status: ".concat(u.status," response type: ").concat(u.responseType)))})),u.addEventListener("error",(function(){i(new Error("error"))})),u.addEventListener("abort",(function(){i(new Error("aborted"))})),null===e?u.open("GET",t,!0):u.open("POST",t,!0),u.responseType="json",u.timeout=n,u.ontimeout=function(){i(new Error("Timeout "+n+"ms "+t))},u.send(e)}))}},{key:"post",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return this.absCall(t,JSON.stringify(e),r,n)}},{key:"fetch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.absCall(t,null,e,r)}}],(r=null)&&Ec(e.prototype,r),n&&Ec(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Tc(t){return(Tc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Pc(t,e){for(var r=0;r=0;--i){var u=this.tryEntries[i],c=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var a=n.call(u,"catchLoc"),s=n.call(u,"finallyLoc");if(a&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),d}},e}function Yc(t,e,r,n,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void r(t)}c.done?e(a):Promise.resolve(a).then(n,o)}function Kc(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function u(t){Yc(i,n,o,u,c,"next",t)}function c(t){Yc(i,n,o,u,c,"throw",t)}u(void 0)}))}}function Wc(t,e){for(var r=0;r0&&"/"!==n[n.length-1]&&(n+="/"),(o=new t).baseUrl=n,r.languageFilename?o.languageFilename=r.languageFilename:o.languageFilename="purposes-[LANG].json",!(r.version>0)){e.next=20;break}return(i=r.versionedFilename)||(i="archives/vendor-list-v[VERSION].json"),u=n+i.replace("[VERSION]",String(r.version)),e.t0=o,e.next=16,wc.fetch(u);case 16:e.t1=e.sent,e.t0.populate.call(e.t0,e.t1),e.next=28;break;case 20:return(c=r.latestFilename)||(c="vendor-list.json"),a=n+c,e.t2=o,e.next=26,wc.fetch(a);case 26:e.t3=e.sent,e.t2.populate.call(e.t2,e.t3);case 28:return e.abrupt("return",o);case 29:case"end":return e.stop()}}),e)}))),function(t){return e.apply(this,arguments)})},{key:"isInstanceOf",value:function(t){return"object"===Bc(t)&&"function"==typeof t.narrowVendorsTo}}]),t}();function zc(t){return(zc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Zc(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Zc=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,u=Object.create(i.prototype),c=new A(n||[]);return o(u,"_invoke",{value:T(t,r,c)}),u}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var p="suspendedStart",y="executing",b="completed",d={};function v(){}function h(){}function S(){}var g={};s(g,u,(function(){return this}));var m=Object.getPrototypeOf,O=m&&m(m(j([])));O&&O!==r&&n.call(O,u)&&(g=O);var E=S.prototype=v.prototype=Object.create(g);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function r(o,i,u,c){var a=f(t[o],t,i);if("throw"!==a.type){var s=a.arg,l=s.value;return l&&"object"==zc(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):e.resolve(l).then((function(t){s.value=t,u(s)}),(function(t){return r("throw",t,u,c)}))}c(a.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function T(e,r,n){var o=p;return function(i,u){if(o===y)throw Error("Generator is already running");if(o===b){if("throw"===i)throw u;return{value:t,done:!0}}for(n.method=i,n.arg=u;;){var c=n.delegate;if(c){var a=P(c,n);if(a){if(a===d)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=b,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var s=f(e,r,n);if("normal"===s.type){if(o=n.done?b:"suspendedYield",s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(o=b,n.method="throw",n.arg=s.arg)}}}function P(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,P(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var u=i.arg;return u?u.done?(r[e.resultName]=u.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,d):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function j(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var u=this.tryEntries[i],c=u.completion;if("root"===u.tryLoc)return o("end");if(u.tryLoc<=this.prev){var a=n.call(u,"catchLoc"),s=n.call(u,"finallyLoc");if(a&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),I(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;I(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:j(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),d}},e}function ta(t,e,r,n,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void r(t)}c.done?e(a):Promise.resolve(a).then(n,o)}function ea(t,e){for(var r=0;r